﻿<Window x:Class="PDO.FX.App.DataExplorer.SettingsPopup"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        SizeToContent="Height"
    Title="Settings" Width="500" ShowInTaskbar="False" WindowStartupLocation="CenterOwner">
    <Grid >

        <StackPanel Orientation="Vertical"  >

            <Grid Margin="5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock TextWrapping="Wrap" Height="50">Connection String:</TextBlock>
                <TextBox Grid.Column="1" Text="{Binding Path=DBConnectionString}" />
            </Grid>

            <Grid Margin="5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"/>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="40"/>
                </Grid.ColumnDefinitions>
                <TextBlock>Assembly Path:</TextBlock>
                <TextBox Grid.Column="1" Text="{Binding Path=DataModelAssemblyFilePath}" />
                <Button Grid.Column="2" x:Name="assemblyBrowse" Content="..." Click="assemblyBrowse_Click" />
            </Grid>

            <Grid Background="AliceBlue" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Button x:Name="cancelBtn" Grid.Column="1" Margin="5,10" Width="80" HorizontalAlignment="Right"   IsCancel="True" Content="Cancel" />
                <Button x:Name="okButton" Grid.Column="2" Margin="5,10" Width="80" IsDefault="True" Content="OK" Click="okButton_Click" />

            </Grid>


        </StackPanel>

    </Grid>
</Window>
